package com.qaml.mes.device.vo.eqp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName CheckUpkeepMessageVO
 * @Description 检保消息
 * @Author leikai
 * @Date 2024/3/12 0012 10:10
 * @Version 1.0
 */
@Data
@ApiModel(value = "check_upkeep_message对象", description = "检保消息")
public class CheckUpkeepMessageVO implements Serializable {

    private static final long serialVersionUID = -5864813209951512135L;

    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 检保项目id
     */
    @ApiModelProperty(value = "检保项目id")
    private String checkUpkeepId;

    /**
     * 检保记录id
     */
    @ApiModelProperty(value = "检保记录id")
    private String checkUpkeepRecordId;

    /**
     * 检保消息类型
     */
    @ApiModelProperty(value = "检保消息类型")
    private String type;

    @ApiModelProperty(value = "图标地址")
    private String logoUrl;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private String userId;

    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称")
    private String userName;

    /**
     * 发送时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发送时间")
    private Date sendTime;

    /**
     * 检保记录状态
     */
    @ApiModelProperty(value = "检保记录状态")
    private String status;

    /**
     * 是否已读  1 已读  0 未读
     */
    @ApiModelProperty(value = "是否已读  1 已读  0 未读")
    private Integer isRead;

    /**
     * 检保日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "检保日期")
    private Date checkUpkeepDate;

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称")
    private String eqpName;
}